

package Vista;

import java.awt.Label;
import javax.swing.*;

public class VistaCarril extends JPanel{
	

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	JScrollBar barra;
	private int extent=5;
	private int min=0;
	private int value=0;
	private  JPanel carril;

	public VistaCarril(int distancia) {
		carril = new JPanel();
		barra = new JScrollBar(0,value,extent,min,distancia);
		this.add(barra);
	}
	
	public void setValue(int posicion){
		barra.setValue(posicion);
	}
}

